package com.hrsystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hrsystem.entity.SalaryList;
import com.hrsystem.mapper.SalaryListMapper;
import com.hrsystem.service.SalaryListService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


@Service
public class SalaryListServiceImpl extends ServiceImpl<SalaryListMapper, SalaryList> implements SalaryListService {

    @Resource
    SalaryListMapper salaryListMapper;

    @Transactional
    public SalaryList selectSListId(Long id){
        QueryWrapper<SalaryList> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("tOrg_id", id);
        SalaryList salaryList = salaryListMapper.selectOne(queryWrapper);
        return salaryList;
    }
}
